//package com.sx.manage.controller.test;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import javax.annotation.Resource;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import com.sx.manage.controller.base.MBaseController;
//import com.sx.manage.dubbo.IMLoginValidateDubboService;
//import com.sx.manage.dubbo.bank.IMBankDubboService;
//import com.sx.manage.dubbo.bank.IMCityDubboService;
//import com.sx.manage.dubbo.bank.IMPayBankDubboService;
//import com.sx.manage.dubbo.business.IMBusinessDubboService;
//import com.sx.manage.dubbo.consumer.IMNetworkPersonConsumerDubboService;
//import com.sx.manage.service.consumer.MPersonConsumerInfoWebServiceImpl;
//import com.sx.model.manage.mybatis.form.bank.MCityForm;
//import com.sx.model.manage.mybatis.form.consumer.MLoginConsumerInfoForm;
//import com.sx.model.manage.mybatis.form.consumer.MPersonalConsumerNetworkForm;
//import com.sx.model.manage.mybatis.vo.bank.MCityVO;
//import com.sx.model.manage.mybatis.vo.bank.MDropDownVO;
//import com.sx.model.manage.mybatis.vo.consumer.MLawVO;
//import com.sx.model.manage.mybatis.vo.consumer.login.MConsumerLoginVO;
//import com.sx.model.manage.mybatis.vo.consumer.login.MPersonConsumerLoginVO;
//import com.sx.model.manage.mybatis.vo.result.ResultBooleanVO;
//import com.sx.model.manage.mybatis.vo.result.ResultDropDownListVO;
//import com.sx.model.manage.mybatis.vo.result.ResultListVO;
//@Controller
//@RequestMapping("/network")
//public class MNetworkRegisterController extends MBaseController {
//	/**
//	 * 日志
//	 */
//	private Logger _log = LoggerFactory.getLogger(this.getClass());
//	/**
//	 * 获取当前用户信息
//	 * @param request
//	 * @return
//	 */
//	public MConsumerLoginVO loginConsumer_test(){
//		MConsumerLoginVO userVO = new MConsumerLoginVO();
//		                 userVO.setConsumer_name("post测试专用户");
//		return userVO;
//	}
//	/**
//	 * 获取当前用户信息
//	 * @param request
//	 * @return
//	 */
//	public MPersonConsumerLoginVO loginConsumer_Person(){
//		MPersonConsumerLoginVO userVO = new MPersonConsumerLoginVO();
//		                 	   userVO.setConsumer_name("post测试专用户");
//		return userVO;
//	}
//	/**个人用户登录类 **/
//	public MConsumerLoginVO loginConsumerForPerson(){
//		MConsumerLoginVO    loginConsumerVO = new MConsumerLoginVO();
//							loginConsumerVO.setConsumer_name("post测试专用户");
//		return loginConsumerVO;
//	}
//
///*	@RequestMapping(value="/queryCompanyByConsumerId")
//	@ResponseBody
//	public ResultObjectVO<MComConsumerVO> queryCompanyByConsumerId(Long consumer_id){
//		return comConsumerDubboServiceImpl.queryCompanyByConsumerId(Long.valueOf("200005"));
//	}
//	
//	*//**
//	 * 1 增加数据
//	 * 
//	 * @param form
//	 *//*
//	@RequestMapping(value="/addCompanyTemp",method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultBooleanVO add(@RequestBody MCompanyInfoTempForm form){
//		return companyInfoTempDubboServiceImpl.add(form);
//	}
//	*//**
//	 * 2 编辑数据
//	 * 
//	 * @param form
//	 *//*
//	@RequestMapping(value="/updateCompanyTemp",method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultBooleanVO update(@RequestBody MCompanyInfoTempForm form){
//		return companyInfoTempDubboServiceImpl.update(form);
//	}
//
//	*//**
//	 * 4 根据id查询用户
//	 * 
//	 * @param form
//	 *//*
//	@RequestMapping(value="/queryByIdCompanyTemp")//eidt_introduce
//	@ResponseBody
//	public ResultObjectVO<MCompanyInfoTempVO> queryById(MCompanyInfoTempForm form){
//		return this.companyInfoTempDubboServiceImpl.queryById(  form.getId());
//	}
//	
//	@RequestMapping(value="/queryPageCompanyTemp")//eidt_introduce
//	@ResponseBody
//	public ResultListVO<MCompanyInfoTempVO> queryPage(MCompanyInfoTempForm form){
//		return this.companyinfotempserviceimpl.queryPage(form);
//	}
//	
//	
//	@RequestMapping(value="/queryListByOrCompanyTemp")//eidt_introduce
//	@ResponseBody
//	public ResultListVO<MCompanyInfoTempVO> queryListByOr(MCompanyInfoTempForm form){
//		return this.companyinfotempserviceimpl.queryListByOr(form);
//	}
//
//	@RequestMapping(value="/saveCompanConsumer")//eidt_introduce
//	@ResponseBody
//	public ResultObjectVO<MComConsumerVO> saveCompanConsumer(MCompanyConsumerInfoForm form){
//		return this.comConsumerDubboServiceImpl.saveCompanConsumer(form);
//	}
//	
//	@RequestMapping(value="/edit_payment_password")//eidt_introduce
//	@ResponseBody
//	public ResultBooleanVO edit_payment_password(String password){
//		
//		return this.personConsumerInfoServiceImpl.edit_payment_password(Long.valueOf(232043),password,null);
//	}
//	
//	
//	
//	
//	@RequestMapping(value="/auto_deposit_interest_no")//eidt_introduce
//	@ResponseBody
//	public ResultBooleanVO auto_deposit_interest_no(Long company_id){
//		
//		return this.companyDubboServiceImpl.auto_deposit_interest_no(company_id,null);
//	}
//	@RequestMapping(value="/auto_deposit_interest_yes")//eidt_introduce
//	@ResponseBody
//	public ResultBooleanVO auto_deposit_interest_yes(Long company_id){
//		
//		return this.companyDubboServiceImpl.auto_deposit_interest_yes(company_id,null);
//	}
//	@RequestMapping(value="/auto_deposit_interest_list")//eidt_introduce
//	@ResponseBody
//	public ResultListVO<MCompanyBriefVO> auto_deposit_interest_list(){
//		
//		return this.companyDubboServiceImpl.auto_deposit_interest_list();
//	}
//	
//	
//	
//	
//	@RequestMapping(value="/channelCompanyProfirQueryById" ,method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultObjectVO<MProfitVO> channelCompanyProfirQueryById( Long id){
//		
//		return this.channelCompanyprofitDubboServiceImpl.queryById(id);
//	}
//	@RequestMapping(value="/channelCompanyProfirSave" ,method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultBooleanVO channelCompanyProfirSave(@RequestBody MProfitForm form){
//		
//		return this.channelCompanyprofitDubboServiceImpl.save(form,this.loginConsumer_test());
//	}
//	@RequestMapping(value="/channelCompanyProfirQueryPage",method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultListVO<MProfitVO> channelCompanyProfirQueryPage(@RequestBody MProfitForm form){
//		
//		return this.channelCompanyprofitDubboServiceImpl.queryPage( form );
//	}
//	
//	@RequestMapping(value="/deleteById",method = RequestMethod.POST, headers = { "content-type=application/json", "content-type=application/xml" })
//	@ResponseBody
//	public ResultBooleanVO deleteById(Long id,Long company_id){
//		MConsumerLoginVO loginConsumer = new MConsumerLoginVO();
//		loginConsumer.setCompany_id(company_id);
//		return channelCompanyprofitDubboServiceImpl.deleteById(id,loginConsumer);
//	}
//	*/
//	//线上注册
//	@Resource(name="mNetworPersonConsumerDubboServiceImpl")
//	private IMNetworkPersonConsumerDubboService mNetworPersonConsumerDubboServiceImpl;
//	// 个人用户web
//	@Resource(name="personConsumerInfoWebServiceImpl")
//	private MPersonConsumerInfoWebServiceImpl personConsumerInfoWebServiceImpl;
//
//	//登陆
//	@Resource(name="loginValidateDubboServiceImpl")
//	private IMLoginValidateDubboService loginValidateDubboServiceImpl;
//	
//	/** 线上注册（只注册手机号）*/
//	@RequestMapping(value="/network_register",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultBooleanVO  network_register(MPersonalConsumerNetworkForm form){
//		_log.debug("线上注册（只注册手机号）");
//		return mNetworPersonConsumerDubboServiceImpl.network_register(form);
//	}
//	
//	/** 设置登录密码 String  password,Long consumer_id**/
//	@RequestMapping(value="/password_set_up",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultBooleanVO password_set_up(MLoginConsumerInfoForm form ){
//		_log.debug("设置登录密码");
//		return mNetworPersonConsumerDubboServiceImpl.password_set_up(form.getPassword(),form.getLogin_num() );
//	}
//
//	/** 信息认证**/
//	@RequestMapping(value="/information_auth",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultBooleanVO information_auth(MPersonalConsumerNetworkForm form){
//		_log.debug("信息认证");
//		return mNetworPersonConsumerDubboServiceImpl.information_auth( form, this.loginConsumer_Person());
//	}
//	
//	/** 设置支付密码**/
//	@RequestMapping(value="/editPaymentPass",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultBooleanVO editPaymentPass(Long consumer_id,String payment_password){
//		_log.debug("设置支付密码");
//		return mNetworPersonConsumerDubboServiceImpl.payment_password_set_up(payment_password, consumer_id);
//	}
//	
//	/** 获取国籍**/	
//	@RequestMapping(value="/query_nationalityInfo",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultDropDownListVO<MDropDownVO> query_nationalityInfo(String nationality_name){
//		_log.debug("获取国籍");
//		Map<String,String> param = new HashMap<String,String>();
//		                   param.put("nationality_name", nationality_name);
//		return mNetworPersonConsumerDubboServiceImpl.query_nationalityInfo(param);
//	}
//	
//	/** 获取证件类型 **/
//	@RequestMapping(value="/law_type_list",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultListVO<MLawVO> law_type_list(String nationality_name){
//		_log.debug("获取证件类型 ");
//		Map<String,String> param = new HashMap<String,String>();
//		                   param.put("nationality_name", nationality_name);
//		return mNetworPersonConsumerDubboServiceImpl.law_type_list();
//	} 
//	
//	/** 查询支行 **/
//	@RequestMapping(value="/queryBankInfoHuaXiaVO",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultDropDownListVO<MDropDownVO> queryBankInfoHuaXiaVO(Map<String,String> param){
//		_log.debug("查询总行");		
//		return payBankDubboServiceImpl.queryBankInfoHuaXiaVO( param );
//	}
//	
//	/** 市 **/
//	@RequestMapping(value="/query_cityInfo_dropdown",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultDropDownListVO<MDropDownVO> query_cityInfo_dropdown( MCityForm form ){
//		_log.debug("查询城市");		
//		return cityDubboServiceImpl.query_cityInfo_dropdown(form);
//	}
//	
//	/**获取省份列表*/
//	@RequestMapping(value="/query_provinceList",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultListVO<MCityVO> query_provinceList(MCityForm form){
//		_log.debug("查询省");		
//		return cityDubboServiceImpl.query_provinceList(form);
//	}
//	
//	/**验证支付密码*//*
//	@RequestMapping(value="/payMentPassValidate",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultBooleanVO payMentPassValidate(String payMentPassword){
//		_log.debug("验证支付密码");		
//		return mPersonalConsumerNetworkDubboServiceImpl.payMentPassValidate(payMentPassword, this.loginConsumerForPerson());
//	}
//	*//**个人用户登录 *//*
//	@RequestMapping(value="/personLoginValidate",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultObjectVO<MPersonConsumerLoginVO> personLoginValidate(MLoginConsumerInfoForm form){
//		_log.debug("个人用户登录");		
//		return loginValidateDubboServiceImpl.personLoginValidate( form );
//	}
//	*//**获取个人用户状态 *//*
//	@RequestMapping(value="/consumerDataStatus",method = RequestMethod.POST)
//	@ResponseBody
//	public ResultObjectVO<MDataStatusType> consumer_data_status(Long consumer_id){
//		_log.debug("获取个人用户状态");		
//		return mPersonalConsumerNetworkDubboServiceImpl.consumer_data_status( consumer_id );
//	}*/
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	
//	//总行
//	@Resource(name="payBankDubboServiceImpl")
//	private IMPayBankDubboService payBankDubboServiceImpl;
//	
//	
//	
//	
//	
//	
//	
//	@Resource(name="bankDubboServiceImpl")
//	private IMBankDubboService bankDubboServiceImpl;
//	
//	
//	@Resource(name="businessDubboServiceImpl")
//	private IMBusinessDubboService businessDubboServiceImpl;
//	
//	
//	@Resource(name="cityDubboServiceImpl")
//	private IMCityDubboService cityDubboServiceImpl;
//}
